package com.demo.test.flyweight;

import com.demo.test.flyweight.iml.Flyweight;

public class ConcreteFlyweightB implements Flyweight {
    private String key;

    public ConcreteFlyweightB(String key){
        this.key = key;
    }

    @Override
    public void operation(UnsharedConcreteFlyweight state) {
        System.out.println("ConcreteFlyweightB：具体享元"+key+"被调用");
        System.out.println("非享元信息："+state.getInfo());
    }
}
